export default {
  namespaced: true,
  state: () => ({
    personSum: 100
  }),
  mutations: {
    increment (state) {
      // 这里的 `state` 对象是模块的局部状态
      state.personSum++
    }
  },
  getters: {
    doubleCount (state, getters, rootState) {
      return state.personSum * 2
    }
  }
}